from django.db import models
class Teacher(models.Model):
    username = models.CharField(max_length=100,unique=True)
    password = models.CharField(max_length=200)
    class Meta:
        db_table='teacher'

class Tstu(models.Model):
    name = models.CharField(max_length=100,unique=True)
    age= models.IntegerField()
    teacher = models.ForeignKey(Teacher,on_delete=models.SET_NULL,null=True,blank=True)
    class Meta:
        db_table='tstu'
# Create your models here.
